package com.dingreading.cloud.web.service.impl;

import com.dingreading.cloud.web.entity.table.WxMiniUserTableDef;
import com.mybatisflex.spring.service.impl.ServiceImpl;
import com.dingreading.cloud.web.entity.WxMiniUser;
import com.dingreading.cloud.web.mapper.WxMiniUserMapper;
import com.dingreading.cloud.web.service.WxMiniUserService;
import org.springframework.stereotype.Service;

/**
 *  服务层实现。
 *
 * @author Administrator
 * @since 2024-11-14
 */
@Service
public class WxMiniUserServiceImpl extends BaseServiceImpl<WxMiniUserMapper, WxMiniUser, WxMiniUserTableDef> implements WxMiniUserService {

    @Override
    protected WxMiniUserTableDef getTable() {
        return WxMiniUserTableDef.wxMiniUser;
    }

    @Override
    public WxMiniUser getByOpenid(String openid) {
        return getMapper().selectOneByCondition(table.openid.eq(openid));
    }

}
